Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: drepId in GET_ACCOUNT_INFO #239

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft

feat: drepId in GET_ACCOUNT_INFO #239

wants to merge 1 commit into from

Conversation

slowbackspace
Copy link
Contributor

@slowbackspace slowbackspace commented Oct 8, 2024

close #238
prereq: blockfrost/blockfrost-js#301

drep can be seen on account pubkey ff6ccc3097ca79fc29fe92a9639c47644746780c63acae10a9e6f03bf5c919dd27d985feabf40d83a30aa4645ff008c068187559dd224ba59e26d0d2dc3598ce via https://websocket-link.blockfrost.dev/

export interface AccountInfo {
  balance: string;
  addresses?: {
    change: AddressData[];
    used: AddressData[];
    unused: AddressData[];
  };
  empty: boolean;
  availableBalance: string;
  descriptor: string;
  tokens?: AssetBalance[];
  history: {
    total: number; // total transactions
    tokens?: number; // tokens transactions
    unconfirmed: number; // unconfirmed transactions
    transactions?: Transactions; // list of transactions
    txids?: string[];
  };
  page: {
    size: number;
    total: number;
    index: number;
  };
  misc: {
    staking: {
      address: string;
      isActive: boolean;
      rewards: string;
      poolId: string | null;
      drep: {
        drep_id: string;
        hex: string;
        amount: string;
        active: boolean;
        active_epoch: number | null;
        has_script: boolean;
      } | null;
    };
  };
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add drep information for GET_ACCOUNT_INFO
1 participant